package cn.learn.domain;

/**
 * es查询的封装类
 *
 * @author huangyezhan
 * @version 1.0
 * @date 2020年06月30日9:30
 */
public class ElasticsearchQuery {
    /**
     * 索引
     */
    private String index;
    /**
     * 查询列明
     */
    private String columnName;
    /**
     * 查询关键字
     */
    private String keyword;

    /**
     * 翻页的开始条数
     */
    private int from = 0;
    /**
     * 页面大小
     */
    private int size = 10;


    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public int getFrom() {
        return from;
    }

    public void setFrom(int from) {
        this.from = from;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
